package com.mooer.app;

import com.mooer.R;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.view.View.OnClickListener;
import android.widget.LinearLayout;

/**
 * 更多
 * @author Minglong.Yu
 * @version 1.0 
 * @created Jun 22, 2011 11:39:48 AM
 */
public class More extends Activity implements OnClickListener {

	LinearLayout accountSetting, help, feedback, serviceTerms, aboutUs;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.more_home);
		accountSetting = (LinearLayout) findViewById(R.id.more1);
		help = (LinearLayout) findViewById(R.id.more2);
		feedback = (LinearLayout) findViewById(R.id.more3);
		serviceTerms = (LinearLayout) findViewById(R.id.more4);
		aboutUs = (LinearLayout) findViewById(R.id.more5);
		
		accountSetting.setOnClickListener(this);
		help.setOnClickListener(this);
		feedback.setOnClickListener(this);
		serviceTerms.setOnClickListener(this);
		aboutUs.setOnClickListener(this);
		
	}

	@Override
	public void onClick(View view) {
		Intent intent=null;
		if(view == accountSetting){
			intent = new Intent(this, MoreAccountSetting.class);
		}else if(view == help){
			intent = new Intent(this, MoreInfomation.class);
			intent.putExtra("type", "help");
		}else if(view == feedback){
			intent = new Intent(this, MoreFeedback.class);
		}else if(view == serviceTerms){
			intent = new Intent(this, MoreInfomation.class);
			intent.putExtra("type", "serviceTerms");
		}else if(view == aboutUs){
			intent = new Intent(this, MoreAboutUs.class);
		}
		if(intent != null){
			startActivity(intent);
		}
	}

}
